package Controlador;

import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zul.Window;

public class ControladorPortal  extends SelectorComposer<Component> {
	@Listen("onClick = #btnMarca")
	public void showModal5(Event e) {
		Window window = (Window)Executions.createComponents("Vistas/Marca.zul", null, null);
		window.doModal();
	}
	@Listen("onClick = #btnModelo")
	public void modelo(){
		Window window= (Window)Executions.createComponents("Vistas/Modelo.zul",null,null);
   		window.doModal();
		
	}

	@Listen("onClick = #btnTipoAviso")
	public void tipoAviso(){
		Window window= (Window)Executions.createComponents("Vistas/TipoAviso.zul",null,null);
   		window.doModal();
		
	}
	
	@Listen("onClick = #btnTipoUsuario")
	public void tipoUsuario(){
		Window window= (Window)Executions.createComponents("Vistas/TipoUsuario.zul",null,null);
   		window.doModal();
		
	}
	@Listen("onClick = #btnUsuario")
	public void usuario(){
		Window window= (Window)Executions.createComponents("Vistas/Usuario.zul",null,null);
   		window.doModal();
		
	}
	@Listen("onClick = #btnLogin")
	public void login(){
		
		Window window= (Window)Executions.createComponents("Vistas/login.zul",null,null);
   		window.doModal();
		
	}




}
